package my.mark.mybaibaoxiang.juc.biji07.unsafe;

import my.mark.mybaibaoxiang.juc.biji07.utils.UnsafeInstance;

/**
 * @author wxming.
 * @description: 内存屏障。
 */
public class FenceTest {

    public static void main(String[] args) {

        UnsafeInstance.reflectGetUnsafe().loadFence();//读屏障

        UnsafeInstance.reflectGetUnsafe().storeFence();//写屏障

        UnsafeInstance.reflectGetUnsafe().fullFence();//读写屏障

    }
}
